package com.sy.entity;

import org.springframework.stereotype.Component;

/**
 * @author Monkey-D-Gu
 * @version 1.0
 * @date 2020/9/11 0011 11:00
 * @usage 学生实体类
 */
@Component
public class Student {
    private Integer id;
    private String username;
    private String password;
    private Integer gender;
    private Integer classId;
    private String studentNo;
    private String state;
    private Classroom classroom;

    public Student() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Classroom getClassroom() {
        return classroom;
    }

    public void setClassroom(Classroom classroom) {
        this.classroom = classroom;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gender=" + gender +
                ", classId=" + classId +
                ", studentNo='" + studentNo + '\'' +
                ", state='" + state + '\'' +
                ", classroom=" + classroom +
                '}';
    }
}
